package com.g2room.rml.hession;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;

public class HessionTest {
	static String accountUrl = "http://dota2appapi.t.sys.wanmei.com/account";  
	static String statisticUrl = "http://dota2appapi.t.sys.wanmei.com/statistic";  
	/** 
     * @param args 
     */  
    public static void main(String[] args) {  
        HessianProxyFactory f = new HessianProxyFactory();  
        try {  
//        	Dota2AccountI ai = (Dota2AccountI)f.create(Dota2AccountI.class, accountUrl);  
        	Dota2StatisticI si = (Dota2StatisticI)f.create(Dota2StatisticI.class, statisticUrl);  
            System.out.println("hello:"+si.getHeroStatListData().toString());  
              
        } catch (MalformedURLException e) {  
            e.printStackTrace();  
        } catch (Exception e) {
            e.printStackTrace();  
        }  
    }  
}
